/*
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */
package org.merak.core.model.parameter;

import java.util.Date;
import java.util.regex.Pattern;

/** (Computing) A Parameter is a reference or value that is passed to a function,
 *  procedure, subroutine, command, or program (definition by WordWeb). A simple
 *  parameter is usually immutable. If it can change, so it is a variable.
 *  @author fmarinho */
public interface IParameter<TValue> {

	//~ Methods //////////////////////////////////////////////////////////////////
	//****************************************************************************
	public String  getName(); // 002N9l7
	public TValue  getValue();
	public String  getValue(Pattern pattern);
	public TValue  getUpperCase();
	public TValue  getLowerCase();
	public int     getInt();
	public long    getLong();
	public double  getDouble();
	public double  getFloat();
	public boolean getBoolean();
	public Date    getDate(String pattern);
	public String  getEmail();
	public String  getAlphabetic();
	public String  getNumeric();
	public String  getAlphaNumeric();
	public String  getPersonalName();
	public String  getBrazilianCNPJ();
	public String  getBrazilianCPF();
	public boolean isNull();
	public boolean isFilled();
	public boolean hasInvalidFormat();
	public boolean hasValue(TValue value);
	//****************************************************************************

}
